package com.example.parttimejob;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.CrossOrigin;

@SpringBootApplication
//@EnableTransactionManagement //开启注解方式的事务管理
@Slf4j
@MapperScan("com.example.parttimejob.mapper")
@CrossOrigin
public class PartTimeJobApplication {

    public static void main(String[] args) {
        SpringApplication.run(PartTimeJobApplication.class, args);
        log.info("server started");
    }

}
